﻿using SqlHelper;
using System;

namespace Model.Permission
{
    public class Menu : EntityBase
    {
        public Menu()
        {
            PrimaryKey = "MenuID";
            TableName = "TMenu";
            AllField = "MenuID,Name,Description,CreateTime,ParentID,MenuType,Urls,UpdateTime";
            KeyStatus = KeyStatus.Identity;
            OrderBy = " order by CreateTime desc ";
        }

        /// <summary>
        /// 菜单ID
        /// </summary>
        public int? MenuID { set; get; }

        /// <summary>
        /// 菜单名称
        /// </summary>
        public string Name { set; get; }

        /// <summary>
        /// 详细描述
        /// </summary>
        public string Description { set; get; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { set; get; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { set; get; }

        /// <summary>
        /// 父级ID,默认为0,没有父级
        /// </summary>
        public int? ParentID { set; get; }

        /// <summary>
        /// 菜单类型  
        /// </summary>
        public int? MenuType { set; get; }

        /// <summary>
        /// Urls
        /// </summary>
        public string Urls { set; get; }
    }
}
